Skip to content

Run rsync with project as working directory#49

Closed
enykeev wants to merge 1 commit intodingjie:masterfrom
enykeev:rsync-cwd
Closed

Run rsync with project as working directory#49
enykeev wants to merge 1 commit intodingjie:masterfrom
enykeev:rsync-cwd

Conversation

@enykeev
Copy link
Copy Markdown

@enykeev enykeev commented Oct 15, 2016

When you start to follow the idea proposed in #38 and try to use shell parameter to set path to identity file, there is no way to set it relative to the project directory.

This PR makes rsync execute with project directory as cwd so every relative path is now resolved against it. You can still use absolute paths or ~ shortcut.

@enykeev
Copy link
Copy Markdown
Author

enykeev commented Oct 15, 2016

Personally, I'm planning to use it with vagrant. Instead of modifying .ssh/config for every project I have, I can just copy-paste .sync-config.cson:

remote:
  host: "localhost"
  user: "vagrant"
  path: "/tmp/some"
behaviour:
  uploadOnSave: true
  syncDownOnOpen: true
  forgetConsole: false
  autoHideConsole: true
  alwaysSyncAll: false
option:
  shell: 'ssh -p 2202 -i .vagrant/machines/default/virtualbox/private_key'
  deleteFiles: false
  exclude: [
    ".sync-config.cson"
    ".git"
    "node_modules"
    "tmp"
    "vendor"
  ]

@ayurmedia
Copy link
Copy Markdown

ayurmedia commented Aug 15, 2017

FYI: i pulled your new feature to:
ayurmedia#4

https://github.com/ayurmedia/atom-sync-cygwin

@ayurmedia
Copy link
Copy Markdown

FYI: i reverted the pull request on atom-sync-cygwin, because it caused side effects and bugs in the context menu for sync. see details here:

ayurmedia#7

@enykeev
Copy link
Copy Markdown
Author

enykeev commented Jul 27, 2018

Cleaning up my Pull Requests tab

@enykeev enykeev closed this Jul 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants